#ifndef SETTABWIDGETPAGE_H
#define SETTABWIDGETPAGE_H

#include <QWidget>
#include <QTableView>
#include <QLayout>
#include <QSqlQueryModel>
#include <QSqlRelationalTableModel>

class SetTabWidgetPage
{
private:
    void setView(QTableView *view);
    
public:
    void setPageLayout(QGridLayout *layout, QWidget *page, QTableView *view);
    
    void setBuildingWidget(QSqlRelationalTableModel *model, QTableView *view, QString filter);
    
    void setFloorWidget(QSqlRelationalTableModel *model, QTableView *view, QString filter);
    
    void setRoomWidget(QSqlRelationalTableModel *model, QTableView *view, QString filter);
    
    void setDeviceWidget(QSqlRelationalTableModel *model, QTableView *view, QString filter);
    
    void setParameterWidget(QSqlRelationalTableModel *model, QTableView *view, QString filter);
    
    void setFuncWidget(QSqlRelationalTableModel *model, QTableView *view, QString filter);
    
    void setGroupObjectWidget(QSqlRelationalTableModel *model, QTableView *view, QString filter);
    
    void setObjectRelationWidget(QSqlRelationalTableModel *model, QTableView *view, QString filter);
    
    void setMainGroupWidget(QSqlRelationalTableModel *model, QTableView *view, QString filter);
    
    void setMiddleGroupWidget(QSqlRelationalTableModel *model, QTableView *view, QString filter);
    
    void setGAWidget(QSqlRelationalTableModel *model, QTableView *view, QString filter);
    
    void setGARelationWidget(QSqlRelationalTableModel *model, QTableView *view, QString filter);
};

#endif // SETTABWIDGETPAGE_H
